package com.ruiyin.dao;

import com.ruiyin.entity.Admin;
import com.ruiyin.entity.AdminAccount;
import com.ruiyin.entity.App;
import com.ruiyin.entity.Valid;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminDao {

    Integer query(String imei);

    void update(Admin admin);

    Integer queryUser(AdminAccount account);

    void insert(AdminAccount account);

    void updateStatus(@Param("imei") String imei,@Param("status")String status);

    void insertUrl(App app);

    List<Valid> queryAll();

    int checkLogin(AdminAccount account);
}
